package com.bolang.onlycode.demo.designPatterns.builder;

public class MacComputerBuilder extends ComputerBuilder{
    private Computer1 computer;
    public MacComputerBuilder(String cpu, String ram) {
        computer = new Computer1(cpu, ram);
    }
    @Override
    public void setUsbCount() {
        computer.setUsbCount(2);
    }

    @Override
    public void setKeyboard() {
        computer.setKeyboard("苹果键盘");
    }

    @Override
    public void setDisplay() {
        computer.setDisplay("苹果显示器");
    }

    @Override
    public Computer1 getComputer1() {
        return computer;
    }
}
